package com.quick.mapper;

import com.quick.domain.User;
import org.apache.ibatis.annotations.*;

import java.util.Date;

/**
 * 功能描述 TODO
 *
 * @Created Time 2017/9/1
 * @Edited Time 2017/9/1
 * @Created by wangxin43
 */
@Mapper
public interface UserMapperTwo {
    @Insert("INSERT INTO user(username, birthday) VALUES(#{username}, #{birthday})")
    int insert(@Param("username") String username, @Param("birthday") Date birthday);
    @Update("UPDATE user SET birthday=#{birthday} WHERE username=#{username}")
    void update(User user);
    @Delete("DELETE FROM user WHERE id =#{id}")
    void delete(Long id);
}
